package com.hifar.test.entrust.pojo.VO;

import com.hifar.plat.AopOption.TranslationList;
import com.hifar.plat.baseModal.pojo.BaseOssFiles;
import com.hifar.test.entrust.pojo.HfEnvEntrust;
import com.hifar.test.entrust.pojo.HfEnvPiece;
import com.hifar.test.entrust.pojo.HfEnvProject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhuWeiWei
 * @description 委托单保存VO
 * @date 2025/5/26 10:46
 */
@Data
@ApiModel("委托单保存VO")
public class HfEnvEntrustSaveVO extends HfEnvEntrust {
    @NotNull(message = "isSubmit不能为空!")
    private Boolean isSubmit;

    /**
     * 委托人id
     */
    @ApiModelProperty(value = "委托人id")
    @NotEmpty(message = "委托人不能为空!")
    private String entrustUserId;

    @TranslationList(isTranslation = true)
    private List<String> testOutlineFileIdList;

    @TranslationList(isTranslation = true)
    private List<String> nextUserIdList;

    @TranslationList(isTranslation = true)
    private List<BaseOssFiles> testOutlineFileList;

    @TranslationList(isTranslation = true)
    @NotEmpty(message = "试验样品不能为空!")
    private List<HfEnvPiece> pieceInfo;
    @TranslationList(isTranslation = true)
    @NotEmpty(message = "试验项目不能为空!")
    private List<HfEnvProjectSaveVO> projectInfo;
}
